import axios from "@/api/http.js";
export const getCatitems = () => {
  return axios({
    method: "get",
    url: "https://api-hmugo-web.itheima.net/api/public/v1/home/catitems",
  });
};
export const getFloordata = () => {
  return axios({
    method: "get",
    url: "https://api-hmugo-web.itheima.net/api/public/v1/home/floordata",
  });
};
export const getQsearch = (query) => {
  return axios({
    method: "get",
    url: "https://api-hmugo-web.itheima.net/api/public/v1/goods/qsearch",
    params: { query },
  });
};
